package com.pet.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 暂未使用 - 系统接入应用表，用于支持SSO多平台权限控制
 *
 * @author Centaurea
 */
@ApiModel(value = "com-pet-system-domain-entity-SysApp")
@Data
@NoArgsConstructor
@TableName(value = "sys_app")
public class SysApp implements Serializable {
  private static final long serialVersionUID = -7910833119126159358L;
  public static final String COL_ID = "id";
  public static final String COL_APP_KEY = "app_key";
  public static final String COL_SECRET = "secret";
  public static final String COL_NAME = "name";
  public static final String COL_DESCRIPTION = "description";
  public static final String COL_FRONTEND = "frontend";
  public static final String COL_SORT = "sort";

  /** ID主键 */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "ID主键")
  private Integer id;

  /** app key （唯一,分配不可更改） */
  @TableField(value = "app_key")
  @ApiModelProperty(value = "app key （唯一,分配不可更改）")
  private String appKey;

  /** 系统接入密钥 */
  @TableField(value = "secret")
  @ApiModelProperty(value = "系统接入密钥")
  private String secret;

  /** 系统接入名称(application.name) */
  @TableField(value = "`name`")
  @ApiModelProperty(value = "系统接入名称(application.name)")
  private String name;

  /** 系统描述 */
  @TableField(value = "description")
  @ApiModelProperty(value = "系统描述")
  private String description;

  /** 前端类型（VUE、ExtJS、CUSTOM、React、Angular） */
  @TableField(value = "frontend")
  @ApiModelProperty(value = "前端类型（VUE、ExtJS、CUSTOM、React、Angular）")
  private String frontend;

  /** 排序序号 */
  @TableField(value = "sort")
  @ApiModelProperty(value = "排序序号")
  private Integer sort;
}
